#
# Makefile
#
# Makefile for linux uvc
include ../../config.mak

CFLAGS += -I./ -I../ -DDEBUG_BUILD

LFLAGS  += -Wall -shared -fPIC

#SOURCES	= MF_And_Server.c camera.c overlay2.c yuv2jpg.c 
SOURCES	= linuxuvc.c input_uvc.c v4l2uvc.c jpeg_utils.c output_http.c httpd.c
OBJECTS	= ${SOURCES:.c=.o}

#OUT	= linux.so
OUT	= target.a
LIBS = -lpthread

all: $(OUT)
	@echo Build DONE.

.c.o:
	$(CC) -c $(CFLAGS) $(OPTFLAGS) -o $@ $<

$(OUT): $(OBJECTS)
	$(AR) rcs $(OUT) $(OBJECTS)
#	$(CC) $(LFLAGS) -o $(OUT) $(OBJECTS) $(LIBS)

clean:
	rm -f $(OBJECTS) $(OUT)
